699588cc5ff3f0073d2bf54f4960c7abf4b235ad,src/main/java/com/progwml6/natura/world/worldgen/trees/nether/FusewoodTreeGenerator.java,FusewoodTreeGenerator,placeTrunk,#World#BlockPos#number#,134
Before Change
protected void placeTrunk(World world, BlockPos pos, int height)
{
while (height >= 0)
{
IBlockState state = world.getBlockState(pos);
Block block = state.getBlock();
if (block.isAir(state, world, pos) || block.isReplaceable(world, pos) || block.isLeaves(state, world, pos))
{
this.setBlockAndMetadata(world, pos, this.log);
}
pos = pos.up();
height--;
}
}
After Change
}
}
protected void placeTrunk(World world, BlockPos pos, int height)
{
for (int localHeight = 0; localHeight < height; ++localHeight)
{
BlockPos blockpos = new BlockPos(pos.getX(), pos.getY() + localHeight, pos.getZ());
IBlockState state = world.getBlockState(blockpos);
Block block = state.getBlock();
if (block.isAir(state, world, blockpos) || block == null || block.isLeaves(state, world, blockpos))
{
world.setBlockState(blockpos, this.log, 2);
}